import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Seckill/"
import { getBaseUrl } from "@/utils/appUrls.js"
//秒杀时间列表
export function GetSeckillStartTimeList(data) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetSeckillStartTimeList",
        data,
    })
}
//通过时间获取秒杀列表
export function GetSeckillGoodsListByStartTime(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetSeckillGoodsListByStartTime",
        data,
    })
}
//获取秒杀列表
export function GetSeckillGoodsList(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetSeckillGoodsList",
        data,
    })
}
//获取秒杀商品详情
export function GetSeckillProductDetailInfo(path) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetSeckillProductDetailInfo" + path,
    })
}
//是否可以参与秒杀
export function CheckBuySeckill(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "CheckBuySeckill",
        data,
    })
}
//获取秒杀活动详情
export function GetSeckillDetail(path) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetSeckillDetail" + path,
    })
}
//提交订单
export function SubmitSeckillOrder(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "SubmitSeckillOrder",
        data,
    })
}
